//
//  OperationView.m
//  智积分
//
//  Created by apple on 2018/5/17.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "OperationView.h"

@implementation OperationView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    [self viewLoad];
    return self;
}

-(void)viewLoad{
    _productionname = [UILabel CXCreateLabelwithFrame:CGRectMake(78, 12, cx_wid - 78 - 69, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:13 withlabelTextColor:[UIColor blackColor] withReturnLabel:YES beyoundview:self];
    _productionname.numberOfLines = 2;
    _num = [UILabel CXCreateLabelwithFrame:CGRectMake(cx_wid - 35, 54, 25, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:13 withlabelTextColor:[CXSinglerModel colorWithHex:@"999999" alpha:1] withReturnLabel:YES beyoundview:self];
    _num.textAlignment = NSTextAlignmentCenter;
    _productioninfo = [UILabel CXCreateLabelwithFrame:CGRectMake(78, 54, cx_wid - 78 - 69, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:13 withlabelTextColor:[CXSinglerModel colorWithHex:@"999999" alpha:1] withReturnLabel:YES beyoundview:self];
    _productionimg = [[UIButton alloc] initWithFrame:CGRectMake(12, 12, 60, 60)];
    _productionimg.backgroundColor = bggrayColor;
    _productionimg.layer.cornerRadius = 5;
    [self addSubview:_productionimg];
    UIView *layerview=  [[UIView alloc] initWithFrame:CGRectMake(0, 83, cx_wid, 1)];
    layerview.backgroundColor = [CXSinglerModel colorWithHex:@"f3f4f6" alpha:1];
    [self addSubview:layerview];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
